package com.group.yqxxb.service;

import com.alibaba.fastjson.JSONObject;
import com.group.yqxxb.pojo.*;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface MessageService {
    /**
     * 发送普通消息方法
     */
    public JSONObject sendCommonMsg(Message message) throws Exception;

    /**
     * 批量发送单点消息
     * */
    public JSONObject sendBatchMsg(SingleBatchMessage message) throws Exception;

    public JSONObject recallMsg(RecallMessage recallMessage)throws Exception;

    /**
     * 单向删除消息
     * */
    public JSONObject delMsgOneWay(RecallMessage message)throws Exception;


    /**
     * 上传文件方法
     * */
    //public JSONObject uploadMessage(UploadFile file)throws Exception;

    /**
     * 返回历史发出消息的方法
     * */
    public List<AgoMessage> getAgoMessages(AgoMessageRequest agoMessageRequest) throws Exception;
}
